//
//  overlay.h
//  hdcvt_osd
//
//  Created by gehj on 2023/2/12.
//

#ifndef overlay_h
#define overlay_h

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int Y_overlay(unsigned char* yuv_mask,
               unsigned char* yuv_bg,
               int w_mask, int h_mask,
               int w_bg,int h_bg);

int Y_xy_overlay(unsigned char* yuv_mask,
                  unsigned char* yuv_bg,
                  int w_mask, int h_mask,
                 int w_bg,int h_bg,int x,int y);

int YV16_overlay(unsigned char* yuv_mask,
                  unsigned char* yuv_bg,
                  int w_mask, int h_mask,
                 int w_bg,int h_bg,int x,int y);

int YV16_overlay_transparent(unsigned char* yuv_mask,
                              unsigned char* yuv_bg,
                              int w_mask, int h_mask,
                              int w_bg,int h_bg,
                              int x,int y,
                              float alpha_decimals);
#endif /* overlay_h */
